// $Id: point.cc 419 2007-09-25 07:50:43Z anders102 $

// This file is part of the Platinum library.
// Copyright (c) 2007 Uppsala University.
//
//    The Platinum library is free software; you can redistribute it and/or modify
//    it under the terms of the GNU Lesser General Public License as published by
//    the Free Software Foundation; either version 2 of the License, or
//    (at your option) any later version.
//
//    The Platinum library is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU Lesser General Public License for more details.
//
//    You should have received a copy of the GNU Lesser General Public License
//    along with the Platinum library; if not, write to the Free Software
//    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

#include "point.h"

point::point() : point_collection()
{
    pointStorage::mapped_type init = pointStorage::mapped_type();
    init.Fill(0);
    thePoints[1] = init;
}

point::point(pointStorage::mapped_type p): point_collection()
{
    thePoints[1] = p;
}

point_collection::pointStorage::mapped_type point::get_origin ()
{
    return thePoints[1];
}

void point::set_origin(const point_collection::pointStorage::mapped_type o)
{
    thePoints[1] = o;
}

